package fun.coding.effective.java;

public class Parent {
    
    static {
        System.out.println("this is the parent static block");
    }
    
    public static void print(){
        System.out.println("this is the parent print");
    }
    
    public static void main(String[] args){
    
        Son.print();
    }
 
}
 
 
class Son extends Parent {
 
    static {
        System.out.println("this is the son static block");
    }
    
    public Son()
    {
        
    }
    
    public static void print()
    {
        System.out.println("this is son print");
    }
    
 
}
